<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* div {
            padding: 30px 20px 40px 50px;
        } */

        /* span {
            display: block;
            margin: 30px 20px 40px 50px;
        } */
         #div1 {
            padding: 30px 20px 40px 50px;
         }
         .div2 {
            margin: 30px 20px 40px 50px;
         }
    </style>
</head>

<body>
    <div id="div1">
        <div class="div2">这是一个div1</div>
        <div class="div2">这是一个div2</div>
    </div >
</body>

</html>